<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class IndexController extends Controller
{
    //
    public function index() {

        if( !session('username') ) {
            return view('admin.login');
        }
        
        return view('admin.index');
    }
}
